package cn.com.shopec.erp.stock.excel.impl;

import java.io.IOException;
import java.io.InputStream;

import org.apache.poi.ss.usermodel.Row;

import cn.com.shopec.erp.common.excel.ExcelBaseImport;
import cn.com.shopec.erp.stock.commo.ObjectUtil;
import cn.com.shopec.erp.stock.entity.ProductBarCode;

public class ProductBarCodeExcelImport extends ExcelBaseImport {

	/**
	 * 构造函数
	 * @param inputStream
	 * @param fileName
	 * @param beginRowIndex
	 * @throws IOException
	 */
	public ProductBarCodeExcelImport(InputStream inputStream, String fileName,int beginRowIndex) throws IOException {
		super(inputStream, fileName,beginRowIndex);
	}

	@Override
	public ProductBarCode setColumnMapping(Row row) {
		ProductBarCode productBarCode = new ProductBarCode();
		productBarCode.setCodeNo(ObjectUtil.toString(super.getCellData(row.getCell(0))));
		return productBarCode;
	}

}
